﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Linq;
using System.Text;

namespace PefStudio.Windows
{
    public interface IDocument
    {
        string Name { get; }
        string Text { get; }
        string Description { get; }
    }

    public interface IDocumentMeta
    {
        string Name { get; }
        string Description { get; }
    }

    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class DocumentAttribute : ExportAttribute
    {
        public DocumentAttribute() : base(typeof(IDocument)) { }
        public DocumentAttribute(Type contractType) : base(contractType) { }
        public string Name { get; set; }
    }
}
